//
//  HeadlineThreeImageTableViewCell.m
//  PhoenixNews
//
//  Created by dllo on 16/1/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "HeadlineThreeImageTableViewCell.h"

@implementation HeadlineThreeImageTableViewCell
- (void)dealloc {
    [_Threeimage release];
    [_ThreeimageTwo release];
    [_ThreeimageThree release];
    [_title release];
    [_time release];
    [_comments release];
    [_Commentsimage release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
      
        self.Threeimage = [[UIImageView alloc] init];
        [self.contentView addSubview:_Threeimage];
        [self.Threeimage release];
        
        self.ThreeimageTwo = [[UIImageView alloc] init];
        [self.contentView addSubview:_ThreeimageTwo];
        [self.ThreeimageTwo release];
        
        self.ThreeimageThree = [[UIImageView alloc] init];
        [self.contentView addSubview:_ThreeimageThree];
        [self.ThreeimageThree release];
        
        self.title = [[UILabel alloc] init];
        
        [self.contentView addSubview:_title];
        [self.title release];
        
        self.comments = [[UILabel alloc] init];
        [self.contentView addSubview:_comments];
        [self.contentView release];
        
        self.time = [[UILabel alloc] init];
        
        [self.contentView addSubview:_time];
        
        self.Commentsimage = [[UIImageView alloc] init];
        [self.contentView addSubview:_Commentsimage];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _Threeimage.frame = CGRectMake(15, 70, 110, 80);
    _ThreeimageTwo.frame = CGRectMake(self.Threeimage.frame.size.width + 25, 70, 110, 80);
    _ThreeimageThree.frame = CGRectMake(self.ThreeimageTwo.frame.origin.x + 120, 70, 110, 80);
    _title.frame = CGRectMake(15, 20, self.frame.size.width - 40, 40);
    _time.frame = CGRectMake(15, self.Threeimage.frame.size.height + 100, 70, 40);
    _time.alpha = 0.8;
    _comments.frame = CGRectMake(self.frame.size.width - 65, self.Threeimage.frame.size.height + 100, 70, 40);
    _comments.alpha = 0.8;
    _comments.font = [UIFont systemFontOfSize:10];
    _Commentsimage.frame = CGRectMake(self.frame.size.width - 30, self.Threeimage.frame.size.height + 113, 15, 15);
    
    
    _time.font = [UIFont systemFontOfSize:10];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
